package com.aos.erp.schools.model.gatherschool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 驾校信息照片表
 * </p>
 *
 * @author ywb
 * @since 2018-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_drivers_school_picture")
public class GatherSchoolPic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long    id;

    /**
     * 父级驾校ID
     */
    @TableField("drivers_school_id")
    private long driversSchoolId;
    /**
     * 文件ID
     */
    @TableField("file_id")
    private long fileId;
    /**
     * 类别  （1：营业执照图片   2：驾校图片）
     */
    private Integer type;
    /**
     * 创建时间
     */
    private Date    created;
    /**
     * 修改时间
     */
    private Date    updated;
    /**
     * 是否删除  （0：是    1：否）
     */
    @TableField("is_del")
    private Integer isDel;

    @Override
    public String toString() {
        return "GatherSchoolPic{" +
                "id=" + id +
                ", driversSchoolId=" + driversSchoolId +
                ", fileId=" + fileId +
                ", type=" + type +
                ", created=" + created +
                ", updated=" + updated +
                ", isDel=" + isDel +
                '}';
    }
}
